
const fs = require('fs');


const p = new Promise((resolve,reject)=>{
    fs.readFile('./resources/为学.md',(err,data)=>{
        resolve(data);
    })
});

p.then(value=>{
    return new Promise((resolve,reject)=>{
        fs.readFile('./resources/小儿垂钓.md',(err,data)=>{
            resolve([value,data]);
        })
    })
}).then(value=>{
    return new Promise((resolve,reject)=>{
        fs.readFile('./resources/赠阙下裴舍人.md',(err,data)=>{
            value.push(data);
            resolve(value);
        })
    })
}).then(value=>{
    console.log(value.join('\r\n'));
})



